import request from '@/utils/request'

// 查询人员证件信息列表
export function listCertificates(query) {
  return request({
    url: '/yanjing/certificates/list',
    method: 'get',
    params: query
  })
}

// 查询人员证件信息详细
export function getCertificates(id) {
  return request({
    url: '/yanjing/certificates/' + id,
    method: 'get'
  })
}

// 新增人员证件信息
export function addCertificates(data) {
  return request({
    url: '/yanjing/certificates',
    method: 'post',
    data: data
  })
}

// 修改人员证件信息
export function updateCertificates(data) {
  return request({
    url: '/yanjing/certificates',
    method: 'put',
    data: data
  })
}

// 删除人员证件信息
export function delCertificates(id) {
  return request({
    url: '/yanjing/certificates/' + id,
    method: 'delete'
  })
}
